﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0062)http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content=WPF,XAML,样式,控件 name=keywords><LINK 
href="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/common.css" type=text/css 
rel=stylesheet><LINK id=MainCss 
href="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/style.css" type=text/css 
rel=stylesheet><LINK 
href="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/common2.css" type=text/css 
rel=stylesheet><LINK 
href="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/shCore.css" type=text/css 
rel=stylesheet><LINK 
href="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/shThemeDefault.css" 
type=text/css rel=stylesheet><LINK title=RSS 
href="http://www.cnblogs.com/iamzhyk/rss" type=application/rss+xml 
rel=alternate><LINK title=RSD href="http://www.cnblogs.com/iamzhyk/rsd.xml" 
type=application/rsd+xml rel=EditURI>
<SCRIPT src="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/jquery.js" 
type=text/javascript></SCRIPT>

<SCRIPT src="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/common.js" 
type=text/javascript></SCRIPT>

<SCRIPT 
src="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/jquery.json-1.3.min.js" 
type=text/javascript></SCRIPT>

<META content="MSHTML 6.00.2900.5897" name=GENERATOR></HEAD>
<BODY>
<FORM id=Form1 name=Form1 action=1409271.html method=post>
<DIV><INPUT id=__EVENTTARGET type=hidden name=__EVENTTARGET> <INPUT 
id=__EVENTARGUMENT type=hidden name=__EVENTARGUMENT> <INPUT 
id="&#13;&#10;__VIEWSTATE" type=hidden name=__VIEWSTATE> </DIV>
<SCRIPT type=text/javascript>
//<![CDATA[
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</SCRIPT>
<!--done-->
<DIV id=banner><!--done-->
<DIV class=header>
<DIV class=headerText><A class=headermaintitle id=Header1_HeaderTitle 
href="http://www.cnblogs.com/iamzhyk/">学无止尽</A><BR>
<DIV class=headerDis>我不是菜鸟，我是给菜鸟吃的菜虫子</DIV></DIV></DIV></DIV>
<DIV id=main><!-- right starts -->
<DIV id=right>
<DIV id=right_content>
<DIV id=mylinks>
<DIV id=mystats><!--done-->
<DIV class=blogStats>随笔- 2&nbsp; 文章- 0&nbsp; 评论- 13&nbsp; </DIV></DIV><!--done--><A class=menu id=MyLinks1_HomeLink 
href="http://www.cnblogs.com/">博客园</A>&nbsp;&nbsp;<A class=menu 
href="http://space.cnblogs.com/">社区</A>&nbsp;&nbsp;<A class=menu 
id=MyLinks1_MyHomeLink 
href="http://www.cnblogs.com/iamzhyk/">首页</A>&nbsp;&nbsp;<A class=menu 
id=MyLinks1_NewPostLink 
href="http://www.cnblogs.com/iamzhyk/admin/EditPosts.aspx?opt=1">新随笔</A>&nbsp;&nbsp;<A 
class=menu id=MyLinks1_ContactLink accessKey=9 
href="http://space.cnblogs.com/msg/send/èèæ¸£å§">联系</A>&nbsp;&nbsp;<A 
class=menu id=MyLinks1_Admin 
href="http://www.cnblogs.com/iamzhyk/admin/EditPosts.aspx">管理</A>&nbsp;&nbsp;<A 
class=menu id=MyLinks1_Syndication 
href="http://www.cnblogs.com/iamzhyk/rss">订阅</A>&nbsp;<A id=MyLinks1_XMLLink 
href="http://www.cnblogs.com/iamzhyk/rss"><IMG 
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" 
alt=订阅 src="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/xml.gif"></A> </DIV>
<DIV id=topics><!--done-->
<DIV id=topics>
<DIV class=post>
<H1 class=postTitle><A class=postTitle2 id=ctl04_TitleUrl 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html">自制WPF的Button的Style，以及一些变化方案</A> 
</H1>
<DIV class=clear></DIV>
<DIV class=postBody>
<P>在园子里潜水了半年多了，终于写了第一篇随笔，希望不是太丢人现眼....&nbsp;</P>
<P>然后，斗胆发在园子的首页上，要是大家拍砖过于猛烈....我就立刻撤下来.....</P>
<P>&nbsp;</P>
<P><STRONG>自制的WPF中Button的Style</STRONG></P>
<P>最近做的一个项目，主要是关注用户体验，所以视图层用到了WPF来增加用户使用时候的新鲜感，自然传统的控件样式是不能令人满意的，所以就自己做了一个Button的Style....</P>
<P>这个Style的功效...就是把我们平时见到的方形的Button</P>
<P>1.做成了一个圆形的（这个功能要做到蛮容易的）</P>
<P>2.这个圆形分两层，分别用渐变色表示（可调）</P>
<P>3.这个圆形的底层有一个背景（背景颜色必须填充，不知道为何 - - 
其实我这个例子用不到这个颜色，不过没有那个Ellipse.Fill它就不让我编译通过）</P>
<P>4.这个圆形还有一个顶层，用来放入这个Button的Content</P>
<P>5.这个Button当鼠标移入移出时...可以渐变色（动画效果的）</P>
<P>6.这个Button当鼠标移入移出时...有光晕产生（同上、移出时是消失）——这个功能折腾了我一个小时的样子，因为最初的光晕是方形的...（原始Border的形状.....）</P>
<P>7.这个Button按下之后给用户一种按下去的感觉...</P>
<P>&nbsp;</P>
<P>其实整个东西我们现在做的这套系统用不到上面所有的效果 - - 权当熟悉WPF的Style了...</P>
<P>&nbsp;</P>
<P>把源码贴出来，分享一下吧 - - 我没查，不知道国内有没有这样的源码...</P>
<P>颜色很恶心，想要漂亮的请自己调整</P>
<P>还有Content的效果也能自己写一些Property加进去</P>
<P>就定义了三种常用事件，可以根据需要多添加一些事件进去</P>
<P>&nbsp;</P>
<P>感谢楼下几位朋友的评论，我再补充一些吧</P>
<P>1、奇形怪状的Button</P>
<P>那就是只要你愿意，你将这个代码中的Ellipse替换一下（比如Polygon），你就可以做出各种形状的Button（比如五角星型）</P>
<P>还有，若是使用BLEND，就更加强大了，你只要在BLEND里手绘出一个图形，然后把那段代码替换进这个Style里面就能做出更加“怪异”的Button了。</P>
<P>还有一些其他的特性，比如其实最下层的那个Ellipse我没有用到，但是你可以通过变更它的大小和Opacity来做出一个三层的按钮</P>
<P>然后也可以添加一些特效（我这里的特效是outerGlowBitMapEffect——光晕），都是比较灵活的，只要把我这串代码的模式掌握了，基本上以后什么样的Button都可以信手拈来</P>
<P>2、如何在Button里放入图片（普通的Winform的Button直接就有这个属性，但是WPF的Button不支持）</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;最简单的方案就是放入一个&lt;ViewBox&gt;，再在里面放入一个&lt;Image&gt;就可以。</P>
<P>3、特殊的Brush</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;其实WPF中定义了不少的刷子，比如VisualBrush，ImageBrush，DrawingBrush，这些刷子要是使用得当可以有各种各样的功用，已经不仅仅局限于用在Button上了，当然，要是你希望把Button做个倒影，那就要使用VisualBrush了~</P>
<P>&nbsp;</P>
<DIV class=cnblogs_code><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><SPAN 
style="COLOR: #008000">&lt;!--</SPAN><SPAN 
style="COLOR: #008000">定义按钮样式</SPAN><SPAN 
style="COLOR: #008000">--&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Style&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">x:Key</SPAN><SPAN 
style="COLOR: #0000ff">="buttonTemplate"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;TargetType</SPAN><SPAN 
style="COLOR: #0000ff">="Button"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #008000">&lt;!--</SPAN><SPAN 
style="COLOR: #008000">修改模板属性</SPAN><SPAN 
style="COLOR: #008000">--&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Setter&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Property</SPAN><SPAN 
style="COLOR: #0000ff">="Template"</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Setter.Value</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #008000">&lt;!--</SPAN><SPAN 
style="COLOR: #008000">控件模板</SPAN><SPAN 
style="COLOR: #008000">--&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">ControlTemplate&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">TargetType</SPAN><SPAN 
style="COLOR: #0000ff">="Button"</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #008000">&lt;!--</SPAN><SPAN 
style="COLOR: #008000">只有Grid才能装下这么多Child</SPAN><SPAN 
style="COLOR: #008000">--&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">Grid</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #008000">&lt;!--</SPAN><SPAN 
style="COLOR: #008000">带特效的底层背景</SPAN><SPAN 
style="COLOR: #008000">--&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Border&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">x:Name</SPAN><SPAN 
style="COLOR: #0000ff">="back"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Opacity</SPAN><SPAN 
style="COLOR: #0000ff">="0.8"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;CornerRadius</SPAN><SPAN 
style="COLOR: #0000ff">="2"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Border.BitmapEffect</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">OuterGlowBitmapEffect&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Opacity</SPAN><SPAN 
style="COLOR: #0000ff">="0.8"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;GlowSize</SPAN><SPAN 
style="COLOR: #0000ff">="0"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;GlowColor</SPAN><SPAN 
style="COLOR: #0000ff">="Red"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Border.BitmapEffect</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Ellipse&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Width</SPAN><SPAN 
style="COLOR: #0000ff">="49"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Height</SPAN><SPAN 
style="COLOR: #0000ff">="49"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Ellipse.Fill</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Red<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Ellipse.Fill</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Ellipse</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #008000">&lt;!--</SPAN><SPAN 
style="COLOR: #008000">按钮呈圆形</SPAN><SPAN 
style="COLOR: #008000">--&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Border</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Ellipse&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">x:Name</SPAN><SPAN 
style="COLOR: #0000ff">="outerCircle"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Width</SPAN><SPAN 
style="COLOR: #0000ff">="50"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Height</SPAN><SPAN 
style="COLOR: #0000ff">="50"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Ellipse.Fill</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">LinearGradientBrush&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">StartPoint</SPAN><SPAN 
style="COLOR: #0000ff">="0,0"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;EndPoint</SPAN><SPAN 
style="COLOR: #0000ff">="0,1"</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">GradientStop&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Offset</SPAN><SPAN 
style="COLOR: #0000ff">="0"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Color</SPAN><SPAN 
style="COLOR: #0000ff">="DarkOliveGreen"</SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">GradientStop&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Offset</SPAN><SPAN 
style="COLOR: #0000ff">="1"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Color</SPAN><SPAN 
style="COLOR: #0000ff">="Azure"</SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">LinearGradientBrush</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Ellipse.Fill</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Ellipse</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Ellipse&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Width</SPAN><SPAN 
style="COLOR: #0000ff">="40"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Height</SPAN><SPAN 
style="COLOR: #0000ff">="40"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Ellipse.Fill</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">LinearGradientBrush&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">StartPoint</SPAN><SPAN 
style="COLOR: #0000ff">="0,0"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;EndPoint</SPAN><SPAN 
style="COLOR: #0000ff">="0,1"</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">GradientStop&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Offset</SPAN><SPAN 
style="COLOR: #0000ff">="0"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Color</SPAN><SPAN 
style="COLOR: #0000ff">="White"</SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">GradientStop&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Offset</SPAN><SPAN 
style="COLOR: #0000ff">="1"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Color</SPAN><SPAN 
style="COLOR: #0000ff">="Transparent"</SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">LinearGradientBrush</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Ellipse.Fill</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Ellipse</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #008000">&lt;!--</SPAN><SPAN 
style="COLOR: #008000">按钮内容</SPAN><SPAN 
style="COLOR: #008000">--&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Border</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">TextBlock&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">x:Name</SPAN><SPAN 
style="COLOR: #0000ff">="content"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;HorizontalAlignment</SPAN><SPAN 
style="COLOR: #0000ff">="Center"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;VerticalAlignment</SPAN><SPAN 
style="COLOR: #0000ff">="Center"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Text</SPAN><SPAN 
style="COLOR: #0000ff">="</SPAN><SPAN 
style="COLOR: #808000">{TemplateBinding&nbsp;&nbsp;Content}</SPAN><SPAN 
style="COLOR: #0000ff">"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">TextBlock</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Border</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">Grid</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #008000">&lt;!--</SPAN><SPAN 
style="COLOR: #008000">触发器</SPAN><SPAN style="COLOR: #008000">--&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">ControlTemplate.Triggers</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Trigger&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Property</SPAN><SPAN 
style="COLOR: #0000ff">="Button.IsMouseOver"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Value</SPAN><SPAN 
style="COLOR: #0000ff">="True"</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Trigger.EnterActions</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">BeginStoryboard</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Storyboard</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">DoubleAnimation&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">To</SPAN><SPAN style="COLOR: #0000ff">="10"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Duration</SPAN><SPAN 
style="COLOR: #0000ff">="0:0:0.2"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Storyboard.TargetName</SPAN><SPAN 
style="COLOR: #0000ff">="back"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Storyboard.TargetProperty</SPAN><SPAN 
style="COLOR: #0000ff">="(Border.BitmapEffect).(OuterGlowBitmapEffect.GlowSize)"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">ColorAnimation&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">To</SPAN><SPAN 
style="COLOR: #0000ff">="#4FFF"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;BeginTime</SPAN><SPAN 
style="COLOR: #0000ff">="0:0:0.2"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Duration</SPAN><SPAN 
style="COLOR: #0000ff">="0:0:0.2"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Storyboard.TargetName</SPAN><SPAN 
style="COLOR: #0000ff">="outerCircle"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Storyboard.TargetProperty</SPAN><SPAN 
style="COLOR: #0000ff">="(Ellipse.Fill).(LinearGradientBrush.GradientStops)[0].(GradientStop.Color)"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">ColorAnimation&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">To</SPAN><SPAN 
style="COLOR: #0000ff">="#3FFF"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;BeginTime</SPAN><SPAN 
style="COLOR: #0000ff">="0:0:0.2"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Duration</SPAN><SPAN 
style="COLOR: #0000ff">="0:0:0.2"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Storyboard.TargetName</SPAN><SPAN 
style="COLOR: #0000ff">="outerCircle"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Storyboard.TargetProperty</SPAN><SPAN 
style="COLOR: #0000ff">="(Ellipse.Fill).(LinearGradientBrush.GradientStops)[1].(GradientStop.Color)"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Storyboard</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">BeginStoryboard</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Trigger.EnterActions</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Trigger.ExitActions</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">BeginStoryboard</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Storyboard</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">DoubleAnimation&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Duration</SPAN><SPAN 
style="COLOR: #0000ff">="0:0:0.2"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Storyboard.TargetName</SPAN><SPAN 
style="COLOR: #0000ff">="back"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Storyboard.TargetProperty</SPAN><SPAN 
style="COLOR: #0000ff">="(Border.BitmapEffect).(OuterGlowBitmapEffect.GlowSize)"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">ColorAnimation&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Duration</SPAN><SPAN 
style="COLOR: #0000ff">="0:0:0.2"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Storyboard.TargetName</SPAN><SPAN 
style="COLOR: #0000ff">="outerCircle"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Storyboard.TargetProperty</SPAN><SPAN 
style="COLOR: #0000ff">="(Ellipse.Fill).(LinearGradientBrush.GradientStops)[0].(GradientStop.Color)"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">ColorAnimation&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Duration</SPAN><SPAN 
style="COLOR: #0000ff">="0:0:0.2"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Storyboard.TargetName</SPAN><SPAN 
style="COLOR: #0000ff">="outerCircle"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Storyboard.TargetProperty</SPAN><SPAN 
style="COLOR: #0000ff">="(Ellipse.Fill).(LinearGradientBrush.GradientStops)[1].(GradientStop.Color)"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Storyboard</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">BeginStoryboard</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Trigger.ExitActions</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Trigger</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Trigger&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Property</SPAN><SPAN 
style="COLOR: #0000ff">="Button.IsPressed"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Value</SPAN><SPAN 
style="COLOR: #0000ff">="True"</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Setter&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Property</SPAN><SPAN 
style="COLOR: #0000ff">="RenderTransform"</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Setter.Value</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">ScaleTransform&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">ScaleX</SPAN><SPAN 
style="COLOR: #0000ff">=".9"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;ScaleY</SPAN><SPAN 
style="COLOR: #0000ff">=".9"</SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Setter.Value</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Setter</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;</SPAN><SPAN 
style="COLOR: #800000">Setter&nbsp;</SPAN><SPAN 
style="COLOR: #ff0000">Property</SPAN><SPAN 
style="COLOR: #0000ff">="RenderTransformOrigin"</SPAN><SPAN 
style="COLOR: #ff0000">&nbsp;Value</SPAN><SPAN 
style="COLOR: #0000ff">=".5,.5"</SPAN><SPAN 
style="COLOR: #0000ff">/&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Trigger</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">ControlTemplate.Triggers</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">ControlTemplate</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Setter.Value</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Setter</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN><SPAN 
style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN 
style="COLOR: #0000ff">&lt;/</SPAN><SPAN 
style="COLOR: #800000">Style</SPAN><SPAN 
style="COLOR: #0000ff">&gt;</SPAN></DIV>
<P>&nbsp;</P>
<P><SPAN style="FONT-SIZE: small"><FONT 
size=2>注：本人使用VS2008时，有时XAML设计器会报错，但是能够编译通过，所以有些情况下无视就好，估计是MS的小BUG....</FONT></SPAN></P>
<P><SPAN style="FONT-SIZE: small"><FONT size=2></FONT></SPAN>&nbsp;</P>
<P><SPAN style="FONT-SIZE: small"><FONT size=2>补充两张效果图</FONT></SPAN></P>
<P><SPAN style="FONT-SIZE: small"><FONT size=2>鼠标焦点不在Button上时：</FONT></SPAN></P>
<P><SPAN style="FONT-SIZE: small"><FONT size=2><IMG height=150 alt="" 
src="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/无标题.jpg" width=170 
border=0></FONT></SPAN></P>
<P><SPAN style="FONT-SIZE: small"><FONT size=2></FONT></SPAN>&nbsp;</P>
<P><SPAN style="FONT-SIZE: small"><FONT 
size=2>鼠标焦点在Button上时（变色动画完成之后的效果）</FONT></SPAN></P>
<P><SPAN style="FONT-SIZE: small"><IMG height=150 alt="" 
src="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/无标题2.jpg" width=155 
border=0></SPAN></P>
<DIV id=EntryTag>Tag标签: <A 
href="http://www.cnblogs.com/iamzhyk/tag/WPF/">WPF</A>,<A 
href="http://www.cnblogs.com/iamzhyk/tag/XAML/">XAML</A>,<A 
href="http://www.cnblogs.com/iamzhyk/tag/æ&nbsp;·å¼/">样式</A>,<A 
href="http://www.cnblogs.com/iamzhyk/tag/æ§ä»¶/">控件</A></DIV>
<DIV id=digg_block>
<DIV id=div_digg>
<DIV class=diggit onclick=DiggIt(1409271,45464,1)><SPAN class=diggnum 
id=digg_count_1409271>0</SPAN> </DIV>
<DIV class=buryit onclick=DiggIt(1409271,45464,2)><SPAN class=burynum 
id=bury_count_1409271>0</SPAN> </DIV>
<DIV class=clear></DIV><SPAN id=span_isdigged_1409271 
style="DISPLAY: none">0</SPAN> 
<DIV class=diggword id=digg_word_1409271>(请您对文章做出评价)</DIV></DIV></DIV>
<DIV class=clear></DIV>
<DIV id=post_next_prev><A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/04/14/1435727.html">» 
</A>下一篇：<A title="发布于2009-04-14 16:02" 
href="http://www.cnblogs.com/iamzhyk/archive/2009/04/14/1435727.html">在XP，Vista下运行DOS程序的轻量级第三方解决方案——DosBox</A><BR></DIV>
<SCRIPT src="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/google_service.js" 
type=text/javascript></SCRIPT>

<SCRIPT type=text/javascript>
    try {
        GS_googleAddAdSenseService("ca-pub-4210569241504288");
        GS_googleEnableAllServices();
    }
    catch (e) { }
</SCRIPT>

<SCRIPT type=text/javascript>
    try {
        GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_blogpost_body");
        GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_commentbox_up");
        GA_googleAddSlot("ca-pub-4210569241504288", "cnblogs_blogpost_bottom");
    }
    catch (e) { }
</SCRIPT>

<SCRIPT type=text/javascript>
    try {
        GA_googleFetchAds();
    } catch (e) { }
</SCRIPT>

<SCRIPT type=text/javascript>
    var blog_ad_has_shown = false;
</SCRIPT>
</DIV>
<DIV class=postDesc>posted @ 2009-03-12 03:59 <A 
href="http://www.cnblogs.com/iamzhyk/">菜菜渣囧</A> 阅读(2624) <A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">评论(13)</A> 
&nbsp;<A 
href="http://www.cnblogs.com/iamzhyk/admin/EditPosts.aspx?postid=1409271">编辑</A> 
<A href="http://www.cnblogs.com/iamzhyk/AddToFavorite.aspx?id=1409271">收藏</A> <A 
onclick="PutInWz();return false;" 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#">网摘</A> 
</DIV></DIV><IMG height=1 
src="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/1409271.jpg" width=1> <!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
rdf:about="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html"
dc:identifier="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html"
dc:title=""
trackback:ping="http://www.cnblogs.com/iamzhyk/services/trackbacks/1409271.aspx" />
</rdf:RDF>
--></DIV><!--end: topics 文章、评论容器--><A name=pagedcomment></A><!--done-->
<DIV class=comment>
<DIV class=feedback_area_title><!--共有<span class="cmt_num"></span>评论--><!-- <span class="cmt_fct">[<a href="">订阅评论</a>]</span> --></DIV>
<DIV class=feedbackNoItems><SPAN id=span_comment_maxid 
style="DISPLAY: none">1475569</SPAN></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1474524">#1楼</A><A 
id=comment_anchor_1474524 name=1474524></A><SPAN class=feedbackName><A 
id=Comments1_CommentList_ctl00_NameLink 
href="http://www.cnitblog.com/r.aspx?url=http://wzy529.spaces.live.com" 
target=_blank rel=nofllow>WangZhiyong[未注册用户]</A></SPAN> 在2009-03-12 07:22说： 
</DIV>
<DIV class=feedbackCon><SPAN class=blog_comment_body 
id=comment_body_1474524>嗯，还好，只是不知道为什么这个也要放在首页……<BR>每个项目里都有几个Button的样式要重写吧……</SPAN><BR>
<DIV class=feedbackManage>&nbsp;&nbsp;<A 
onclick='ReplyComment("WangZhiyong",1474524,"")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">回复</A>&nbsp;&nbsp;<A 
onclick='QuoteComment(1474524,"")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">引用</A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl00_DeleteLink 
href="javascript:__doPostBack('Comments1$CommentList$ctl00$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl00_EditLink CausesValidation="False"></A> 
</DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1474526">#2楼</A><A 
id=comment_anchor_1474526 name=1474526></A><SPAN class=feedbackName><A 
id=Comments1_CommentList_ctl01_NameLink href="http://www.cnblogs.com/invinboy/" 
target=_blank>巴山游子</A>&nbsp;<A class=sendMsg2This title=给此人发送站内短消息 
href="http://space.cnblogs.com/msg/send/å·´å±±æ¸¸å&shy;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A></SPAN> 
在2009-03-12 07:51说： </DIV>
<DIV class=feedbackCon><SPAN class=blog_comment_body 
id=comment_body_1474526>非常佩服LZ的勤奋，如果有效果页面就好了，这些代码看起来好累啊！！</SPAN><BR>
<DIV class=feedbackManage>&nbsp;&nbsp;<A 
onclick='ReplyComment("巴山游子",1474526,"6k87tVvHD187CSu/UdrcgNmzIQsVfoYgdH6Y+G3cHc1UFilSStub+A==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">回复</A>&nbsp;&nbsp;<A 
onclick='QuoteComment(1474526,"6k87tVvHD187CSu/UdrcgNmzIQsVfoYgdH6Y+G3cHc1UFilSStub+A==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">引用</A>&nbsp;&nbsp;<A 
title=查看该作者发表过的评论 
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e5%b7%b4%e5%b1%b1%e6%b8%b8%e5%ad%90" 
target=_blank>查看</A>&nbsp;&nbsp;<A id=Comments1_CommentList_ctl01_DeleteLink 
href="javascript:__doPostBack('Comments1$CommentList$ctl01$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl01_EditLink CausesValidation="False"></A> 
</DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1474579">#3楼</A><A 
id=comment_anchor_1474579 name=1474579></A><SPAN class=feedbackName><A 
id=Comments1_CommentList_ctl02_NameLink href="http://www.cnblogs.com/netec/" 
target=_blank>沉默杨仔</A>&nbsp;<A class=sendMsg2This title=给此人发送站内短消息 
href="http://space.cnblogs.com/msg/send/æ²é»æ¨ä»">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A></SPAN> 
在2009-03-12 08:56说： </DIV>
<DIV class=feedbackCon><SPAN class=blog_comment_body 
id=comment_body_1474579>一直没有接触WPF.一直担心客户会不会像接受flash 
activex一样接受Silverlight</SPAN><BR>
<DIV class=feedbackManage>&nbsp;&nbsp;<A 
onclick='ReplyComment("沉默杨仔",1474579,"DV3txMLdtJdkkTzpeM4bCZVK8jqI3TuGDT1GS1zlJtSGPjHxPrdk5Q==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">回复</A>&nbsp;&nbsp;<A 
onclick='QuoteComment(1474579,"DV3txMLdtJdkkTzpeM4bCZVK8jqI3TuGDT1GS1zlJtSGPjHxPrdk5Q==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">引用</A>&nbsp;&nbsp;<A 
title=查看该作者发表过的评论 
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e6%b2%89%e9%bb%98%e6%9d%a8%e4%bb%94" 
target=_blank>查看</A>&nbsp;&nbsp;<A id=Comments1_CommentList_ctl02_DeleteLink 
href="javascript:__doPostBack('Comments1$CommentList$ctl02$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl02_EditLink CausesValidation="False"></A> 
</DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1474665">#4楼</A><A 
id=comment_anchor_1474665 name=1474665></A><SPAN class=feedbackName><A 
id=Comments1_CommentList_ctl03_NameLink target=_blank>fff[未注册用户]</A></SPAN> 
在2009-03-12 09:48说： </DIV>
<DIV class=feedbackCon><SPAN class=blog_comment_body 
id=comment_body_1474665>截个图贴出来吧</SPAN><BR>
<DIV class=feedbackManage>&nbsp;&nbsp;<A 
onclick='ReplyComment("fff",1474665,"")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">回复</A>&nbsp;&nbsp;<A 
onclick='QuoteComment(1474665,"")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">引用</A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl03_DeleteLink 
href="javascript:__doPostBack('Comments1$CommentList$ctl03$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl03_EditLink CausesValidation="False"></A> 
</DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1474667">#5楼</A><A 
id=comment_anchor_1474667 name=1474667></A><SPAN class=feedbackName><A 
id=Comments1_CommentList_ctl04_NameLink 
href="http://www.cnitblog.com/r.aspx?url=http://paintshow.cn" target=_blank 
rel=nofllow>Paintshow[未注册用户]</A></SPAN> 在2009-03-12 09:49说： </DIV>
<DIV class=feedbackCon><SPAN class=blog_comment_body 
id=comment_body_1474667>非常好，先保存，再看看效果</SPAN><BR>
<DIV class=feedbackManage>&nbsp;&nbsp;<A 
onclick='ReplyComment("Paintshow",1474667,"")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">回复</A>&nbsp;&nbsp;<A 
onclick='QuoteComment(1474667,"")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">引用</A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl04_DeleteLink 
href="javascript:__doPostBack('Comments1$CommentList$ctl04$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl04_EditLink CausesValidation="False"></A> 
</DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1474713">#6楼</A><A 
id=comment_anchor_1474713 name=1474713></A>[<SPAN class=louzhu>楼主</SPAN>]<SPAN 
class=feedbackName><A id=Comments1_CommentList_ctl05_NameLink 
href="http://www.cnblogs.com/iamzhyk/" target=_blank>菜菜渣囧</A>&nbsp;<A 
class=sendMsg2This title=给此人发送站内短消息 
href="http://space.cnblogs.com/msg/send/èèæ¸£å§">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A></SPAN> 
在2009-03-12 10:26说： </DIV>
<DIV class=feedbackCon><SPAN class=blog_comment_body 
id=comment_body_1474713>--引用-------------------------------------------------- 
<BR>巴山游子: 非常佩服LZ的勤奋，如果有效果页面就好了，这些代码看起来好累啊！！ 
<BR>-------------------------------------------------------- 
<BR>其实是想截图的，不过截出来的图是不带动画效果的，所以我觉得还是大家自己放VS里看要来得好一些</SPAN><BR>
<DIV class=feedbackManage>&nbsp;&nbsp;<A 
onclick='ReplyComment("菜菜渣囧",1474713,"raJPaxYm8NasmCGjJ8dH0lNpmxaeP4xg6Q4bf3sk2Mk5OfZiuW67Ng==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">回复</A>&nbsp;&nbsp;<A 
onclick='QuoteComment(1474713,"raJPaxYm8NasmCGjJ8dH0lNpmxaeP4xg6Q4bf3sk2Mk5OfZiuW67Ng==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">引用</A>&nbsp;&nbsp;<A 
title=查看该作者发表过的评论 
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e8%8f%9c%e8%8f%9c%e6%b8%a3%e5%9b%a7" 
target=_blank>查看</A>&nbsp;&nbsp;<A id=Comments1_CommentList_ctl05_DeleteLink 
href="javascript:__doPostBack('Comments1$CommentList$ctl05$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl05_EditLink CausesValidation="False"></A> 
</DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1474716">#7楼</A><A 
id=comment_anchor_1474716 name=1474716></A>[<SPAN class=louzhu>楼主</SPAN>]<SPAN 
class=feedbackName><A id=Comments1_CommentList_ctl06_NameLink 
href="http://www.cnblogs.com/iamzhyk/" target=_blank>菜菜渣囧</A>&nbsp;<A 
class=sendMsg2This title=给此人发送站内短消息 
href="http://space.cnblogs.com/msg/send/èèæ¸£å§">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A></SPAN> 
在2009-03-12 10:29说： </DIV>
<DIV class=feedbackCon><SPAN class=blog_comment_body 
id=comment_body_1474716>--引用-------------------------------------------------- 
<BR>WangZhiyong: 嗯，还好，只是不知道为什么这个也要放在首页…… <BR>每个项目里都有几个Button的样式要重写吧…… 
<BR>-------------------------------------------------------- 
<BR>是的，我这个项目里还有一个Button样式的重写，不过仅仅是一些效果，但是Button变成圆形的以后，会有很多不同的地方，虽然上面的代码并非很长，但是却有不少XAML的机制在里面，有些我也不是很明白，要是有达人能够跟帖说说Child和Treeview这两个东西就好了</SPAN><BR>
<DIV class=feedbackManage>&nbsp;&nbsp;<A 
onclick='ReplyComment("菜菜渣囧",1474716,"raJPaxYm8NasmCGjJ8dH0lNpmxaeP4xg6Q4bf3sk2Mk5OfZiuW67Ng==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">回复</A>&nbsp;&nbsp;<A 
onclick='QuoteComment(1474716,"raJPaxYm8NasmCGjJ8dH0lNpmxaeP4xg6Q4bf3sk2Mk5OfZiuW67Ng==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">引用</A>&nbsp;&nbsp;<A 
title=查看该作者发表过的评论 
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e8%8f%9c%e8%8f%9c%e6%b8%a3%e5%9b%a7" 
target=_blank>查看</A>&nbsp;&nbsp;<A id=Comments1_CommentList_ctl06_DeleteLink 
href="javascript:__doPostBack('Comments1$CommentList$ctl06$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl06_EditLink CausesValidation="False"></A> 
</DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1474841">#8楼</A><A 
id=comment_anchor_1474841 name=1474841></A>[<SPAN class=louzhu>楼主</SPAN>]<SPAN 
class=feedbackName><A id=Comments1_CommentList_ctl07_NameLink 
href="http://www.cnblogs.com/iamzhyk/" target=_blank>菜菜渣囧</A>&nbsp;<A 
class=sendMsg2This title=给此人发送站内短消息 
href="http://space.cnblogs.com/msg/send/èèæ¸£å§">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A></SPAN> 
在2009-03-12 12:31说： </DIV>
<DIV class=feedbackCon><SPAN class=blog_comment_body 
id=comment_body_1474841>--引用-------------------------------------------------- 
<BR>fff: 截个图贴出来吧 <BR>-------------------------------------------------------- 
<BR>已经截图了</SPAN><BR>
<DIV class=feedbackManage>&nbsp;&nbsp;<A 
onclick='ReplyComment("菜菜渣囧",1474841,"raJPaxYm8NasmCGjJ8dH0lNpmxaeP4xg6Q4bf3sk2Mk5OfZiuW67Ng==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">回复</A>&nbsp;&nbsp;<A 
onclick='QuoteComment(1474841,"raJPaxYm8NasmCGjJ8dH0lNpmxaeP4xg6Q4bf3sk2Mk5OfZiuW67Ng==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">引用</A>&nbsp;&nbsp;<A 
title=查看该作者发表过的评论 
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e8%8f%9c%e8%8f%9c%e6%b8%a3%e5%9b%a7" 
target=_blank>查看</A>&nbsp;&nbsp;<A id=Comments1_CommentList_ctl07_DeleteLink 
href="javascript:__doPostBack('Comments1$CommentList$ctl07$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl07_EditLink CausesValidation="False"></A> 
</DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1474907">#9楼</A><A 
id=comment_anchor_1474907 name=1474907></A><SPAN class=feedbackName><A 
id=Comments1_CommentList_ctl08_NameLink 
href="http://www.cnblogs.com/zhuimengke/" target=_blank>追梦客</A>&nbsp;<A 
class=sendMsg2This title=给此人发送站内短消息 
href="http://space.cnblogs.com/msg/send/è¿½æ¢¦å®¢">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A></SPAN> 
在2009-03-12 13:37说： </DIV>
<DIV class=feedbackCon><SPAN class=blog_comment_body 
id=comment_body_1474907>一直不了解WPF，根据博主的分享，稍微知道了些，谢谢分享。</SPAN><BR>
<DIV class=feedbackManage>&nbsp;&nbsp;<A 
onclick='ReplyComment("追梦客",1474907,"u9cDyU6xDP7dMGwXUqxlL4Wqe2l+RYH7TZAX064Q35cYam6sGBgJiw==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">回复</A>&nbsp;&nbsp;<A 
onclick='QuoteComment(1474907,"u9cDyU6xDP7dMGwXUqxlL4Wqe2l+RYH7TZAX064Q35cYam6sGBgJiw==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">引用</A>&nbsp;&nbsp;<A 
title=查看该作者发表过的评论 
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e8%bf%bd%e6%a2%a6%e5%ae%a2" 
target=_blank>查看</A>&nbsp;&nbsp;<A id=Comments1_CommentList_ctl08_DeleteLink 
href="javascript:__doPostBack('Comments1$CommentList$ctl08$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl08_EditLink CausesValidation="False"></A> 
</DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1474928">#10楼</A><A 
id=comment_anchor_1474928 name=1474928></A>[<SPAN class=louzhu>楼主</SPAN>]<SPAN 
class=feedbackName><A id=Comments1_CommentList_ctl09_NameLink 
href="http://www.cnblogs.com/iamzhyk/" target=_blank>菜菜渣囧</A>&nbsp;<A 
class=sendMsg2This title=给此人发送站内短消息 
href="http://space.cnblogs.com/msg/send/èèæ¸£å§">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A></SPAN> 
在2009-03-12 14:01说： </DIV>
<DIV class=feedbackCon><SPAN class=blog_comment_body 
id=comment_body_1474928>--引用-------------------------------------------------- 
<BR>追梦客: 一直不了解WPF，根据博主的分享，稍微知道了些，谢谢分享。 
<BR>-------------------------------------------------------- 
<BR>其实我也对WPF只是一知半解，越学越觉得XAML很深，里面封装了很多的类和方法，有的时候写XAML感觉就是在编程一样....</SPAN><BR>
<DIV class=feedbackManage>&nbsp;&nbsp;<A 
onclick='ReplyComment("菜菜渣囧",1474928,"raJPaxYm8NasmCGjJ8dH0lNpmxaeP4xg6Q4bf3sk2Mk5OfZiuW67Ng==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">回复</A>&nbsp;&nbsp;<A 
onclick='QuoteComment(1474928,"raJPaxYm8NasmCGjJ8dH0lNpmxaeP4xg6Q4bf3sk2Mk5OfZiuW67Ng==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">引用</A>&nbsp;&nbsp;<A 
title=查看该作者发表过的评论 
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e8%8f%9c%e8%8f%9c%e6%b8%a3%e5%9b%a7" 
target=_blank>查看</A>&nbsp;&nbsp;<A id=Comments1_CommentList_ctl09_DeleteLink 
href="javascript:__doPostBack('Comments1$CommentList$ctl09$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl09_EditLink CausesValidation="False"></A> 
</DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1475072">#11楼</A><A 
id=comment_anchor_1475072 name=1475072></A><SPAN class=feedbackName><A 
id=Comments1_CommentList_ctl10_NameLink href="http://www.cnblogs.com/yangching/" 
target=_blank>杨同学</A>&nbsp;<A class=sendMsg2This title=给此人发送站内短消息 
href="http://space.cnblogs.com/msg/send/æ¨åå&shy;¦">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A></SPAN> 
在2009-03-12 15:34说： </DIV>
<DIV class=feedbackCon><SPAN class=blog_comment_body 
id=comment_body_1475072>加油~~</SPAN><BR>
<DIV class=feedbackManage>&nbsp;&nbsp;<A 
onclick='ReplyComment("杨同学",1475072,"KjfVcbceck1q7hUaSjqU8Nv9Ul9VGhKMcDSAqcS+j2OZUwLBJ+SR2w==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">回复</A>&nbsp;&nbsp;<A 
onclick='QuoteComment(1475072,"KjfVcbceck1q7hUaSjqU8Nv9Ul9VGhKMcDSAqcS+j2OZUwLBJ+SR2w==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">引用</A>&nbsp;&nbsp;<A 
title=查看该作者发表过的评论 
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e6%9d%a8%e5%90%8c%e5%ad%a6" 
target=_blank>查看</A>&nbsp;&nbsp;<A id=Comments1_CommentList_ctl10_DeleteLink 
href="javascript:__doPostBack('Comments1$CommentList$ctl10$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl10_EditLink CausesValidation="False"></A> 
</DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1475548">#12楼</A><A 
id=comment_anchor_1475548 name=1475548></A><SPAN class=feedbackName><A 
id=Comments1_CommentList_ctl11_NameLink 
target=_blank>小菜lllllllll[未注册用户]</A></SPAN> 在2009-03-12 23:17说： </DIV>
<DIV class=feedbackCon><SPAN class=blog_comment_body 
id=comment_body_1475548>弱弱问下~ 怎么在vs2008中用啊？ 这些代码放哪呢？</SPAN><BR>
<DIV class=feedbackManage>&nbsp;&nbsp;<A 
onclick='ReplyComment("小菜lllllllll",1475548,"")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">回复</A>&nbsp;&nbsp;<A 
onclick='QuoteComment(1475548,"")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">引用</A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl11_DeleteLink 
href="javascript:__doPostBack('Comments1$CommentList$ctl11$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl11_EditLink CausesValidation="False"></A> 
</DIV></DIV></DIV>
<DIV class=feedbackItem>
<DIV class=feedbackListSubtitle><A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1475569">#13楼</A><A 
id=comment_anchor_1475569 name=1475569></A>[<SPAN class=louzhu>楼主</SPAN>]<A 
name=Post></A><SPAN class=feedbackName><A 
id=Comments1_CommentList_ctl12_NameLink href="http://www.cnblogs.com/iamzhyk/" 
target=_blank>菜菜渣囧</A>&nbsp;<A class=sendMsg2This title=给此人发送站内短消息 
href="http://space.cnblogs.com/msg/send/èèæ¸£å§">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</A></SPAN> 
在2009-03-13 00:43说： </DIV>
<DIV class=feedbackCon><SPAN class=blog_comment_body 
id=comment_body_1475569>@小菜lllllllll <BR>建立一个WPF程序 <BR>放在App.xaml中 
<BR>然后再在Window1.xaml中添加一个Button控件 <BR>然后再在这个Button的代码中这样写.. <BR><BR>&lt;Button 
Style="{StaticResource buttonTemplate}"&gt;&lt;/Button&gt;</SPAN><BR>
<DIV class=feedbackManage>&nbsp;&nbsp;<A 
onclick='ReplyComment("菜菜渣囧",1475569,"raJPaxYm8NasmCGjJ8dH0lNpmxaeP4xg6Q4bf3sk2Mk5OfZiuW67Ng==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">回复</A>&nbsp;&nbsp;<A 
onclick='QuoteComment(1475569,"raJPaxYm8NasmCGjJ8dH0lNpmxaeP4xg6Q4bf3sk2Mk5OfZiuW67Ng==")' 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#commentform">引用</A>&nbsp;&nbsp;<A 
title=查看该作者发表过的评论 
href="http://www.cnblogs.com/CommentsByAuthor.aspx?author=%e8%8f%9c%e8%8f%9c%e6%b8%a3%e5%9b%a7" 
target=_blank>查看</A>&nbsp;&nbsp;<A id=Comments1_CommentList_ctl12_DeleteLink 
href="javascript:__doPostBack('Comments1$CommentList$ctl12$DeleteLink','')"></A>&nbsp;&nbsp;<A 
id=Comments1_CommentList_ctl12_EditLink CausesValidation="False"></A> 
</DIV></DIV></DIV></DIV>
<SCRIPT type=text/javascript>
    var commentAuthorHasChecked = false;
    var commentAuthorIsValid = false;
    var commentUrlIsValid = true;
    var commentEmailIsValid = true;
    var authenCodeHasChecked = false;
    var authenCodeIsValid = true;
    var hasLogined = false;
    
    function PostComment() {    
        
        var isValid = true;
        
        if($("#wrapAuthenCode").css("display")=="none"){
            ShowAuthenCode();
            $("#tip_AuthenCode").css("color","red");
            $("#tip_AuthenCode").html("请输入验证码！");
            isValid = false;
        }
        
        if(!hasLogined && !commentAuthorHasChecked){
            CheckAuthor();        
        }                
        if(!hasLogined && !commentAuthorIsValid){
            isValid = false;
        }
                       
        if(!authenCodeHasChecked){
            CheckAuthenCode();            
        }
        if(!authenCodeIsValid){
            isValid = false;
        }
        
        if(!hasLogined && !commentUrlIsValid){            
            isValid = false;
        }        
        if(!commentEmailIsValid){            
            isValid = false;
        }        
        if(!CheckCommentContent()){
            isValid = false;
        }    
        if(!isValid){
            return;
        }

        var content = $("#tbCommentBody").val();
        if(content.length>2000){
            alert("评论内容过长！不允许发布！");
            return;
        }        
        
       if ($("#span_comment_posted").html()!='' && $("#span_comment_posted").html()==content){
            alert("该评论已发表过!");
            return;
        }
        
        $("#tip_comment").html("评论提交中...");
        $("#span_comment_posted").html(content);
        //content = content.replace("'", "\\'");
        var email = $("#tbCommentEmail").val();
        var authenNum = $("#tbAuthenCode").val();
        var authenId = $("#span_comment_test").html();
        var comment = {};
        comment.authenNum = authenNum;
        comment.authenId= authenId;
        comment.parentId = 1409271;
        comment.blogId = 45464;
        comment.sourceUrl = 'http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html';
        comment.author = $("#tbCommentAuthor").val();
        comment.url = $("#tbCommentAuthorUrl").val();
        comment.authenCode = $("#tbAuthenCode").val();
        comment.email = email;
        comment.title = '自制WPF的Button的Style，以及一些变化方案';
        comment.content = content;
        comment.parentCommentId = $("#span_parentcomment_id").html();
        $.ajax({
            url: '/ws/CommentService.asmx/AddAnonymousComment',
            data: $.toJSON(comment),
            type: "post",
            dataType: "json",
            contentType: "application/json; charset=utf8",
            success: function(data) {
               if (data.d["IsSuccess"]) {
                    ShowCommentMsg("感谢您的回复:)");
                    //RereshComments2(comment.parentId);
                    $("#tbCommentBody").val('');
                    //$("#divCommentShow").html(data.d["ReturnData"]+content.replace(/\n/g,"<br/>")+"<br/><br/>");
                    $("#divCommentShow").html($("#divCommentShow").html()+data.d["ReturnData"]); 
                    $("#tip_AuthenCode").html('');
                    RefreshAuthenCode();
                    $("#tbAuthenCode").val("");                    
                    CommentNotify(data.d["CommentID"]);
                }
                else {
                    ShowCommentMsg(data.d["ReturnData"]);//"抱歉！评论提交失败！请与管理员联系。");
                    $("#span_comment_posted").html(''); 
                }
            },
            error: function(xhr) {
                ShowCommentMsg("抱歉！评论提交失败！请与管理员联系。");
                $("#span_comment_posted").html('');  
                //alert(xhr.responseText);
            }
        }
        );
    }
    
    function RefreshAuthenCode(){
        AjaxPost("/ws/CommentService.asmx/RefreshAuthenCode","{}",RefreshImg); 
        $("#lnkRereshAuthenCode").html("<span style='color:red'>刷新中...</span>");
        return false;
    }
    
    function RefreshImg(response){
       $("#imgAuthenCode").attr("src","/Modules/CaptchaImage/ValidCodeImage.aspx?id="+encodeURIComponent(response));
       $("#span_comment_test").html(response);
       $("#lnkRereshAuthenCode").html("看不清，换一个");
    }
    
    function ShowAuthenCode(){
        //if($("#wrapAuthenCode").css("display")=="none"){    
        //    AjaxPost("/ws/CommentService.asmx/RefreshAuthenCode","{}",ShowAuthenCodeOk);
        //}
        $("#wrapAuthenCode").show();      
    }
    
    function ShowAuthenCodeOk(response){
         UpdateAuthenCode();
         $("#tbAuthenCode").val("");
         $("#wrapAuthenCode").show();
         $("#tip_AuthenCode").html('');
    }  
 
    
    function CheckAuthor(isOnblur){
        commentAuthorHasChecked = true;
        var maxLength = 30;
        if($("#tbCommentAuthor").val().length == 0){
            $("#tip_author").html("请输入您的昵称！");
            commentAuthorIsValid = false;
            return false;
        }     
        else if($("#tbCommentAuthor").val().length > maxLength){
            $("#tip_author").html("昵称不允许超过" + maxLength + "个字符！");
            commentAuthorIsValid = false;
            return false;
        }
        else{
            //if(isOnblur){
                AjaxPost("/ws/CommentService.asmx/IsAuthorExist","{author:'"+$("#tbCommentAuthor").val()+"'}" ,OnCheckAuthorExist);
            //}
            //else{
            //    $("#tip_author").html("");
            //    commentAuthorIsValid = true;
            //}
            return true;
        }
   }
   
    function OnCheckAuthorExist(response){        
        if(!response){
            $("#tip_author").html("");
            commentAuthorIsValid = true;
        }
        else{
            $("#tip_author").html("该昵称已被使用，请更换昵称");
            commentAuthorIsValid = false;
        }
   }
   
    function CheckUrl(){
        var maxLength = 50;
        var url = $("#tbCommentAuthorUrl").val();
        
        if(url.length == 0){
            commentUrlIsValid = true;
            return true;
        }
        else if(url.length > maxLength){
            $("#tip_url").html("主页地址不允许超过" + maxLength + "个字符！");
            commentUrlIsValid = false;
            return false;
        }
        else if(url.indexOf("http://")!=0 || url.indexOf(".") < 0){
            $("#tip_url").html("主页地址要以“http://”开头");
            commentUrlIsValid = false;
            return false;
        }
        else{
            $("#tip_url").html("");
            commentUrlIsValid = true;
            return true;
        }
   }
   
   function CheckEmail(){
        var email = $("#tbCommentEmail").val();
        if(email.length>0){
            var regExp = new RegExp("\\w+@((\\w|\-)+\\.)+[a-z]{2,3}");
            if(!regExp.test(email)){
                $("#tip_email").html("请输入正确的邮件地址!");
                commentEmailIsValid = false;
            }
            else{
                commentEmailIsValid = true;
                 $("#tip_email").html("");
            }
        }
        else{
            commentEmailIsValid = true;
            $("#tip_email").html("");  
        }
   }
   
   function CheckAuthenCode(){
        authenCodeHasChecked = true;
        var num = $("#tbAuthenCode").val();
        var id = $("#span_comment_test").html();
        $("#tip_AuthenCode").css("color","red");
        if(num.length==0){
             authenCodeIsValid = false;
             $("#tip_AuthenCode").html("请输入验证码！");
             return;
        }
        else if(num.length!=4){
            authenCodeIsValid = false;
            $("#tip_AuthenCode").html("请输入四位数字！");
             return;
        }
        else if(new RegExp("(\d+)").test(num)){
            authenCodeIsValid = false;
            $("#tip_AuthenCode").html("请输入四位数字！");
             return;
        }
        else{
            AjaxPost("/ws/CommentService.asmx/CheckAuthenCode","{number:"+num+",id:'"+id+"'}", OnCheckAuthenCode);
        }
   }
   
   function OnCheckAuthenCode(response){
        if(response){
            $("#tip_AuthenCode").css("color","green");
            $("#tip_AuthenCode").html("验证码输入正确！");
            authenCodeIsValid = true;            
        }
        else{
            $("#tip_AuthenCode").css("color","red");
            $("#tip_AuthenCode").html("验证码输错啦！");
            RefreshAuthenCode();
            authenCodeIsValid = false;           
        }
   }
   
   function CheckCommentContent(){
    if($("#tbCommentBody").val().length==0){
        alert("请输入评论内容！");
        return false;
    }
    return true;
   }
    
</SCRIPT>

<DIV class=commentform id=ctl05_comment_form>
<DIV id=ctl05_divCommentPannel>
<DIV id=divCommentShow></DIV>
<DIV id=comment_nav style="TEXT-ALIGN: right"><SPAN 
id=span_refresh_tips></SPAN><A id=lnk_RefreshComments 
onclick="return RefreshCommentList(1409271);" 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html###" 
name=commentform>刷新评论列表</A>&nbsp; <A onclick="return RefreshPage();" 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html###">刷新页面</A>&nbsp; 
<A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#top">返回页首</A></DIV>
<DIV id=commentform_title>发表评论 <SPAN class=ad_commentbox_up><A 
href="http://job.cnblogs.com/zt/200912YesHJ/" 
target=_blank>沪江网技术部招聘程序员</A></SPAN></DIV><SPAN id=tip_comment 
style="COLOR: red"></SPAN>
<P>昵称：<INPUT class=author id=tbCommentAuthor onblur=CheckAuthor() 
onfocus=ShowAuthenCode()> <SPAN id=tip_author style="COLOR: red"></SPAN><A 
href="http://passport.cnblogs.com/login.aspx?ReturnUrl=http%3a%2f%2fwww.cnblogs.com%2fiamzhyk%2farchive%2f2009%2f03%2f12%2f1409271.html%3flogin%3d1%23commentform">[登录]</A> 
<A 
href="http://passport.cnblogs.com/register.aspx?ReturnUrl=http%3a%2f%2fwww.cnblogs.com%2fiamzhyk%2farchive%2f2009%2f03%2f12%2f1409271.html%23Top">[注册]</A> 
</P>
<P>主页：<INPUT class=url id=tbCommentAuthorUrl onblur=CheckUrl() 
onfocus=ShowAuthenCode()> <SPAN id=tip_url style="COLOR: red"></SPAN></P>
<P>邮箱：<INPUT class=email id=tbCommentEmail onblur=CheckEmail() 
onfocus=ShowAuthenCode()>(仅博主可见) <SPAN id=tip_email 
style="COLOR: red"></SPAN></P>
<P id=wrapAuthenCode style="DISPLAY: none">验证码：<INPUT id=tbAuthenCode 
onblur=CheckAuthenCode()> <SPAN id=tip_AuthenCode></SPAN><IMG id=imgAuthenCode 
alt=验证码 src="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/ValidCodeImage.jpg" 
align=absMiddle> <A id=lnkRereshAuthenCode onclick="return RefreshAuthenCode();" 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html###">看不清，换一个</A> 
</P>
<P>评论内容：<SPAN id=tip_comment_content style="COLOR: red"></SPAN> <BR><TEXTAREA class=comment_textarea id=tbCommentBody onkeydown="return clt_enter(event)" onfocus=ShowAuthenCode()></TEXTAREA> 
<!--
<br /><input id="cbRememberMe" type="checkbox" />记住我的昵称和主页
--></P>
<P><INPUT class=comment_btn id=btn_comment_submit onclick="PostComment();return false;" type=button value=提交> 
&nbsp;&nbsp;<A 
href="http://passport.cnblogs.com/login.aspx?ReturnUrl=http%3a%2f%2fwww.cnblogs.com%2fiamzhyk%2farchive%2f2009%2f03%2f12%2f1409271.html%3flogin%3d1%23commentform">登录</A>&nbsp;&nbsp;<A 
href="http://passport.cnblogs.com/register.aspx?ReturnUrl=http%3a%2f%2fwww.cnblogs.com%2fiamzhyk%2farchive%2f2009%2f03%2f12%2f1409271.html%23Bottom">注册</A> 
</P>
<P>[使用Ctrl+Enter键快速提交评论] </P>
<DIV style="DISPLAY: none"><SPAN id=comment_edit_id></SPAN><SPAN 
id=span_parentcomment_id>0</SPAN> <SPAN id=span_parent_id>1409271</SPAN> <SPAN 
id=span_comment_replyto></SPAN><SPAN id=span_comment_posted></SPAN><SPAN 
id=span_comment_test>toRXmAmr/3w=</SPAN> </DIV></DIV>网站导航：<A 
href="http://www.cnblogs.com/" target=_blank>博客园首页</A> | <A 
href="http://home.cnblogs.com/" target=_blank>个人主页</A> | <A 
href="http://home.cnblogs.com/ing/" target=_blank>闪存</A> | <A 
href="http://news.cnblogs.com/" target=_blank>IT新闻</A> | <A 
href="http://job.cnblogs.com/" target=_blank>程序员招聘</A> | <A 
href="http://space.cnblogs.com/" target=_blank>社区</A> | <A 
href="http://space.cnblogs.com/q/" target=_blank>博问</A> | <A 
href="http://wz.cnblogs.com/" target=_blank>网摘</A><BR><BR>
<SCRIPT type=text/javascript>
    try {
        GA_googleFillSlot("cnblogs_blogpost_bottom");
    }
    catch (e) { }
</SCRIPT>
<BR>
<DIV class=itnews id=itnews>IT新闻:<BR>· <A 
href="http://news.cnblogs.com/n/53369/" target=_blank>微软2010年10大预测 
必应份额不温不火</A><BR>· <A href="http://news.cnblogs.com/n/53368/" 
target=_blank>埃里森:Sun只做高端服务器 不与惠普戴尔为敌</A><BR>· <A 
href="http://news.cnblogs.com/n/53367/" target=_blank>Mozilla称手机版火狐将击败苹果App 
Store</A><BR>· <A href="http://news.cnblogs.com/n/53366/" 
target=_blank>微软掩耳盗铃关闭聚酷 业界热炒微博概念</A><BR>· <A 
href="http://news.cnblogs.com/n/53365/" 
target=_blank>谷歌收购Yelp可能意在拓展本地业务</A><BR></DIV>
<DIV id=div_ad2><A href="http://www.china-pub.com/itbook/" 
target=_blank>China-pub 计算机图书网上专卖店！6.5万品种2-8折！</A><BR><A 
href="http://www.china-pub.com/static07/0901/zh_jueba_090121.asp" 
target=_blank>China-Pub 计算机绝版图书按需印刷服务</A><BR></DIV>
<DIV id=div_commentbox_nav>链接：<A 
href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html?switchskin=1#skinlist">切换模板</A><BR></DIV>
<DIV id=relative_search><BR><B>相关搜索:</B><BR><A 
href="http://zzk.cnblogs.com/s?w=WPF" target=_blank>WPF</A> <A 
href="http://zzk.cnblogs.com/s?w=XAML" target=_blank>XAML</A> <A 
href="http://zzk.cnblogs.com/s?w=%e6%a0%b7%e5%bc%8f" target=_blank>样式</A> <A 
href="http://zzk.cnblogs.com/s?w=%e6%8e%a7%e4%bb%b6" target=_blank>控件</A> </DIV>
<DIV id=relative_search><BR><B>在知识库中查看：</B><BR><A 
href="http://kb.cnblogs.com/a/1409271/">自制WPF的Button的Style，以及一些变化方案</A></DIV><BR></DIV></DIV>
<DIV id=footer><!--done-->Copyright ©2009 菜菜渣囧 </DIV></DIV></DIV><!-- right ends --><!-- left starts -->
<DIV id=left><!-- 左侧工具部分 -->
<DIV id=left_content><!--done--><!-- <h1 class="listtitle">公告</h1> -->
<DIV class=newsItem>
<DIV id=profile_block><A href="http://home.cnblogs.com/iamzhyk/" 
target=_blank>我的主页</A>&nbsp; <A href="http://home.cnblogs.com/iamzhyk/detail/" 
target=_blank>个人资料</A><BR><A href="http://home.cnblogs.com/iamzhyk/ing/" 
target=_blank>我的闪存</A>&nbsp; <A 
href="http://space.cnblogs.com/msg/send/èèæ¸£å§" 
target=_blank>发短消息</A></DIV></DIV>
<DIV id=calendar>
<TABLE class=Cal id=Calendar1_entryCal title=Calendar cellSpacing=0 
cellPadding=0 border=0>
  <TBODY>
  <TR>
    <TD colSpan=7>
      <TABLE class=CalTitle cellSpacing=0 border=0>
        <TBODY>
        <TR>
          <TD class=CalNextPrev><A title="Go to the previous month" 
            style="COLOR: black" 
            href="javascript:__doPostBack('Calendar1$entryCal','V3319')">&lt;</A></TD>
          <TD align=middle>2009年3月</TD>
          <TD class=CalNextPrev align=right><A title="Go to the next month" 
            style="COLOR: black" 
            href="javascript:__doPostBack('Calendar1$entryCal','V3378')">&gt;</A></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TH class=CalDayHeader scope=col align=middle abbr=日>日</TH>
    <TH class=CalDayHeader scope=col align=middle abbr=一>一</TH>
    <TH class=CalDayHeader scope=col align=middle abbr=二>二</TH>
    <TH class=CalDayHeader scope=col align=middle abbr=三>三</TH>
    <TH class=CalDayHeader scope=col align=middle abbr=四>四</TH>
    <TH class=CalDayHeader scope=col align=middle abbr=五>五</TH>
    <TH class=CalDayHeader scope=col align=middle abbr=六>六</TH></TR>
  <TR>
    <TD class=CalOtherMonthDay align=middle>22</TD>
    <TD class=CalOtherMonthDay align=middle>23</TD>
    <TD class=CalOtherMonthDay align=middle>24</TD>
    <TD class=CalOtherMonthDay align=middle>25</TD>
    <TD class=CalOtherMonthDay align=middle>26</TD>
    <TD class=CalOtherMonthDay align=middle>27</TD>
    <TD class=CalOtherMonthDay align=middle>28</TD></TR>
  <TR>
    <TD class=CalWeekendDay align=middle>1</TD>
    <TD align=middle>2</TD>
    <TD align=middle>3</TD>
    <TD align=middle>4</TD>
    <TD align=middle>5</TD>
    <TD align=middle>6</TD>
    <TD class=CalWeekendDay align=middle>7</TD></TR>
  <TR>
    <TD class=CalWeekendDay align=middle>8</TD>
    <TD align=middle>9</TD>
    <TD align=middle>10</TD>
    <TD align=middle>11</TD>
    <TD align=middle><A 
      href="http://www.cnblogs.com/iamzhyk/archive/2009/3/12.html"><U>12</U></A></TD>
    <TD align=middle>13</TD>
    <TD class=CalWeekendDay align=middle>14</TD></TR>
  <TR>
    <TD class=CalWeekendDay align=middle>15</TD>
    <TD align=middle>16</TD>
    <TD align=middle>17</TD>
    <TD align=middle>18</TD>
    <TD align=middle>19</TD>
    <TD align=middle>20</TD>
    <TD class=CalWeekendDay align=middle>21</TD></TR>
  <TR>
    <TD class=CalWeekendDay align=middle>22</TD>
    <TD align=middle>23</TD>
    <TD align=middle>24</TD>
    <TD align=middle>25</TD>
    <TD align=middle>26</TD>
    <TD align=middle>27</TD>
    <TD class=CalWeekendDay align=middle>28</TD></TR>
  <TR>
    <TD class=CalWeekendDay align=middle>29</TD>
    <TD align=middle>30</TD>
    <TD align=middle>31</TD>
    <TD class=CalOtherMonthDay align=middle>1</TD>
    <TD class=CalOtherMonthDay align=middle>2</TD>
    <TD class=CalOtherMonthDay align=middle>3</TD>
    <TD class=CalOtherMonthDay align=middle>4</TD></TR></TBODY></TABLE></DIV>
<DIV id=leftcontentcontainer>
<SCRIPT type=text/javascript>
var blogapp = 'iamzhyk';
</SCRIPT>

<DIV class=mySearch>
<H3 class=catListTitle>搜索</H3>
<DIV class=div_my_zzk><INPUT class=input_my_zzk id=q 
onkeydown="return zzk_go_enter(event);">&nbsp;<INPUT class=btn_my_zzk id=btnZzk onclick=zzk_go() type=button value=找找看></DIV>
<DIV class=div_my_zzk><INPUT class=input_my_zzk id=google_q 
onkeydown="return google_go_enter(event)" name=google_q>&nbsp;<INPUT class=btn_my_zzk onclick=google_go() type=button value=Google搜索></DIV></DIV>
<DIV class=catListLink>
<H3 class=catListTitle>常用链接</H3>
<UL>
  <LI><A id=SingleColumn1_ctl02_rptMainLinks_ctl00_lnkLinkItem 
  href="http://www.cnblogs.com/iamzhyk/MyPosts.html">我的随笔</A> 
  <LI><A id=SingleColumn1_ctl02_rptMainLinks_ctl01_lnkLinkItem 
  href="http://home.cnblogs.com/iamzhyk/">我的空间</A> 
  <LI><A id=SingleColumn1_ctl02_rptMainLinks_ctl02_lnkLinkItem 
  href="http://space.cnblogs.com/msg/recent">我的短信</A> 
  <LI><A id=SingleColumn1_ctl02_rptMainLinks_ctl03_lnkLinkItem 
  href="http://www.cnblogs.com/iamzhyk/MyComments.html">我的评论</A> 
  <LI><A id=itemListLink 
  onclick="this.blur();WarpClass('itemListLink', 'itemListLin_con');return false;" 
  href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#">更多链接</A> 
  </LI></UL>
<DIV id=itemListLin_con style="DISPLAY: none">
<UL>
  <LI><A id=SingleColumn1_ctl02_repeaterLinks_ctl00_lnkLinkItem title=我发表过评论的随笔 
  href="http://www.cnblogs.com/iamzhyk/OtherPosts.html">我的参与</A> 
  <LI><A id=SingleColumn1_ctl02_repeaterLinks_ctl01_lnkLinkItem 
  href="http://www.cnblogs.com/iamzhyk/MyNews.html">我的新闻</A> 
  <LI><A id=SingleColumn1_ctl02_repeaterLinks_ctl02_lnkLinkItem 
  href="http://www.cnblogs.com/iamzhyk/RecentComments.html">最新评论</A> 
  <LI><A id=SingleColumn1_ctl02_repeaterLinks_ctl03_lnkLinkItem 
  href="http://www.cnblogs.com/iamzhyk/tag/">我的标签</A> </LI></UL></DIV></DIV>
<H3 class=catListTitle>我的标签</H3>
<DIV id=MyTag>
<UL>
  <LI><A href="http://www.cnblogs.com/iamzhyk/tag/WPF/">WPF</A>(1)
  <LI><A href="http://www.cnblogs.com/iamzhyk/tag/XAML/">XAML</A>(1)
  <LI><A href="http://www.cnblogs.com/iamzhyk/tag/æ&nbsp;·å¼/">样式</A>(1)
  <LI><A href="http://www.cnblogs.com/iamzhyk/tag/æ§ä»¶/">控件</A>(1)
  <LI><A href="http://www.cnblogs.com/iamzhyk/tag/DOS/">DOS</A>(1) 
</LI></UL></DIV><!--done-->
<H1 class=catListTitle>随笔档案</H1>
<UL class=catList>
  <LI class=catListItem><A class=listitem 
  id=SingleColumn1_Categories_CatList_ctl00_LinkList_ctl01_Link 
  href="http://www.cnblogs.com/iamzhyk/archive/2009/04.html">2009年4月 (1)</A> 
  <LI class=catListItem><A class=listitem 
  id=SingleColumn1_Categories_CatList_ctl00_LinkList_ctl02_Link 
  href="http://www.cnblogs.com/iamzhyk/archive/2009/03.html">2009年3月 (1)</A> 
  </LI></UL>
<H3 class=catListTitle>最新评论 <A id=SingleColumn1__25a59c1_RSSHyperlink1 
href="http://www.cnblogs.com/iamzhyk/CommentsRSS.aspx"><IMG 
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" 
src="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/xml.gif"></A></H3>
<DIV class=RecentComment id=RecentComments>
<UL>
  <LI style="WORD-BREAK: break-all"><A 
  id=SingleColumn1__25a59c1_CommentList_ctl01_Hyperlink1 
  href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1475569">1.&nbsp;re: 
  今晚的成果...自己写的WPF的Button的Style</A> 
  <LI style="WORD-BREAK: break-all">@小菜lllllllll 
  建立一个WPF程序放在App.xaml中然后再在Window1.xaml中添加一个Button控件然后再在这个Button的代码中这样写.. 
  &lt;Button S... 
  <LI style="MARGIN-RIGHT: 4px; TEXT-ALIGN: right">--菜菜渣囧 
  <LI style="WORD-BREAK: break-all"><A 
  id=SingleColumn1__25a59c1_CommentList_ctl02_Hyperlink1 
  href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1475548">2.&nbsp;re: 
  今晚的成果...自己写的WPF的Button的Style</A> 
  <LI style="WORD-BREAK: break-all">弱弱问下~ 怎么在vs2008中用啊？ 这些代码放哪呢？ 
  <LI style="MARGIN-RIGHT: 4px; TEXT-ALIGN: right">--小菜lllllllll 
  <LI style="WORD-BREAK: break-all"><A 
  id=SingleColumn1__25a59c1_CommentList_ctl03_Hyperlink1 
  href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1475072">3.&nbsp;re: 
  今晚的成果...自己写的WPF的Button的Style</A> 
  <LI style="WORD-BREAK: break-all">加油~~ 
  <LI style="MARGIN-RIGHT: 4px; TEXT-ALIGN: right">--杨同学 
  <LI style="WORD-BREAK: break-all"><A 
  id=SingleColumn1__25a59c1_CommentList_ctl04_Hyperlink1 
  href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1474928">4.&nbsp;re: 
  今晚的成果...自己写的WPF的Button的Style</A> 
  <LI 
  style="WORD-BREAK: break-all">--引用-------------------------------------------------- 
  追梦客: 一直不了解WPF，根据博主的分享，稍微知道了些，谢谢分享。 ----------... 
  <LI style="MARGIN-RIGHT: 4px; TEXT-ALIGN: right">--菜菜渣囧 
  <LI style="WORD-BREAK: break-all"><A 
  id=SingleColumn1__25a59c1_CommentList_ctl05_Hyperlink1 
  href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html#1474907">5.&nbsp;re: 
  今晚的成果...自己写的WPF的Button的Style</A> 
  <LI style="WORD-BREAK: break-all">一直不了解WPF，根据博主的分享，稍微知道了些，谢谢分享。 
  <LI style="MARGIN-RIGHT: 4px; TEXT-ALIGN: right">--追梦客 </LI></UL></DIV>
<H3 class=catListTitle>阅读排行榜</H3>
<DIV class=RecentComment id=TopViewPosts>
<UL style="WORD-BREAK: break-all">
  <LI><A id=SingleColumn1_ctl06_TopList_ctl01_Hyperlink1 
  href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html">1.&nbsp;自制WPF的Button的Style，以及一些变化方案(2624)</A> 

  <LI><A id=SingleColumn1_ctl06_TopList_ctl02_Hyperlink1 
  href="http://www.cnblogs.com/iamzhyk/archive/2009/04/14/1435727.html">2.&nbsp;在XP，Vista下运行DOS程序的轻量级第三方解决方案——DosBox(294)</A> 
  </LI></UL></DIV>
<H3 class=catListTitle>评论排行榜</H3>
<DIV class=RecentComment id=TopCommentsPosts>
<UL style="WORD-BREAK: break-all">
  <LI><A id=SingleColumn1_ctl07_TopList_ctl01_Hyperlink1 
  href="http://www.cnblogs.com/iamzhyk/archive/2009/03/12/1409271.html">1.&nbsp;自制WPF的Button的Style，以及一些变化方案(13)</A> 

  <LI><A id=SingleColumn1_ctl07_TopList_ctl02_Hyperlink1 
  href="http://www.cnblogs.com/iamzhyk/archive/2009/04/14/1435727.html">2.&nbsp;在XP，Vista下运行DOS程序的轻量级第三方解决方案——DosBox(0)</A> 
  </LI></UL></DIV></DIV></DIV><!-- //右侧工具部分 --></DIV><!-- left ends -->
<DIV class=clear></DIV></DIV></FORM>
<SCRIPT src="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/shCore.js" 
type=text/javascript></SCRIPT>

<SCRIPT src="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/shLanguage.js" 
type=text/javascript></SCRIPT>

<SCRIPT type=text/javascript>
        try {
            SyntaxHighlighter.config.clipboardSwf = 'http://common.cnblogs.com/flash/clipboard.swf'
            SyntaxHighlighter.all();
        } catch (e) { }
    </SCRIPT>

<SCRIPT src="自制WPF的Button的Style，以及一些变化方案 - 学无止尽 - 博客园.files/ShowHidden.js" 
type=text/javascript></SCRIPT>

<SCRIPT type=text/javascript>
        var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
        document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </SCRIPT>

<SCRIPT type=text/javascript>
        try {
            var pageTracker = _gat._getTracker("UA-476124-1");
            pageTracker._trackPageview();
        } catch (err) { }</SCRIPT>
</BODY></HTML>
